package com.tfswue.lh.controller;

import com.tfswue.lh.service.Bookservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BookController {
    @Autowired
    private Bookservice bookservice;

    @RequestMapping("/book")
    public String book() {
        return String.valueOf(bookservice.getById(3));
    }
}
